package com.xianbeiying.app.ckgl.widght;

public class WindowSizeEntity {
    private int width;
    private int height;
    private int layoutHeight;

    public WindowSizeEntity(int width, int height) {
        super();
        this.width = width;
        this.height = height;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getLayoutHeight() {
        return layoutHeight == 0 ? height : layoutHeight;
    }

    public void setLayoutHeight(int layoutHeight) {
        this.layoutHeight = layoutHeight;
    }

    @Override
    public String toString() {
        return "WindowSizeEntity [width=" + width + ", height=" + height
                + ", layoutHeight=" + layoutHeight + "]";
    }

}
